package com.quzitech.efest.utils;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class MyDateUtils {

	static Date date;
	static int year;
	static int month, day;
	static Calendar calendar = null;
	static SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

	public static String getCurrentTime() {
		Date d = new Date();

		return sdf.format(d);

	}

	public static Date str2DateString(String strdate) {

		try {
			return sdf.parse(strdate);
		} catch (ParseException e) {

			e.printStackTrace();
		} finally {
			return null;
		}

	}
}
